﻿@model List<TVShows.DataModels.TVShow>
<div class="jumbotron">
    TV Show List<br />
    <button class="btn btn-primary" onclick="location.href='/TVShow/AddShow'">Add TV Show</button>
</div>

<table class="table table-hover">
    <tr>
        <th colspan="3">TV Shows</th>
    </tr>
    @foreach (var t in Model)
    {
     <tr>
         <td onclick="location.href='TVShow/Details/@t.Id'"><img src="@t.Image" style="width:100px; height:100px" />@t.Name</td>
         <td><input type="button" class="btn btn-warning" onclick="location.href='/TVShow/EditShow/@t.Id'" value="Edit Show" /></td>
         <td><input type="button" class="btn btn-danger" onclick="location.href='/TVShow/DeleteShow/@t.Id'" value="Delete Show" /></td>
     </tr>   
    }
</table>